
export default {
    install: function (oParameter) {
        window.layui.use("layim", function (layim) {
            layim.config({
                title: oParameter.user.name,//"iTool Cloud",
                min: true,
                notice: true,
                right: "20px",
                copyright: true,

                //初始化接口
                init: {
                    mine: {
                        id: oParameter.user.User_ID,
                        username: oParameter.user.name,
                        status: "online",
                        sign: oParameter.user.position.CN,
                        avatar: oParameter.user.avatar,
                    },
                    friend: oParameter.friend,
                    group: [
                        {
                            groupname: "前端群",
                            id: "101",
                            avatar: "http://tp2.sinaimg.cn/2211874245/180/40050524279/0",
                        },
                        {
                            groupname: "Fly社区官方群",
                            id: "102",
                            avatar: "http://tp2.sinaimg.cn/5488749285/50/5719808192/1",
                        },
                    ],
                },

                //查看群员接口
                members: {
                    // url: "/static/layui/json/getMembers.json",
                    data: {},
                },

                msgbox: window.layui.cache.dir + "css/modules/layim/html/msgbox.html", //消息盒子页面地址，若不开启，剔除该项即可
                find: window.layui.cache.dir + "css/modules/layim/html/find.html", //发现页面地址，若不开启，剔除该项即可
                chatLog:
                    window.layui.cache.dir + "css/modules/layim/html/chatlog.html", //聊天记录页面地址，若不开启，剔除该项即可
            });
        });
    }
}